<html>
<head>
<title>GSPS file upload</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<script LANGUAGE="javascript">
     <!--
     function openwin() {
     	window.open ("watermark.aspx", "newwindow", "height=536, width=321, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
     //写成一行
     }
     
     function checkForm()
     {
     	var file = document.form.myFile.value;
     	if (file == "")
     	{
     		alert("请选择文件！");
     		return false;
     	}
     	return true;
     }
	
	function returnValue(ret,ret1,ret1len)
	{
		var file_str = ret.split("content_center");
		
		if(ret1len == 0)
		{
			//ret = "<a href=" + file_str[1] + " target=_blank><img src=\"" + file_str[1] + "\"></a>";
			ret = "<img src="+ file_str[1] +" border=1>";
		}
		else
		{
			if(ret1len >= 93)
			{
				ret = "<div class=\"moduleSingleImg01\"><img src='" + file_str[1] + "' border=1 alt='" + ret1 + "' \/><p>" + ret1 + "<\/p> <\/div><p><\/p>";
			}
			else
			{
				ret = "<div class=\"moduleSingleImg01\"><img src='" + file_str[1] + "' border=1 alt='" + ret1 + "' \/><p>" + ret1 + "<\/p><\/div><p><\/p>";
			}
		}

		var topWin;
		var currentWin = self;
		var parentWin = currentWin.opener;
	
		//while(parentWin != null)
		if(parentWin != null)
		{
			currentWin = parentWin;
			parentWin = currentWin.opener;
		}
		topWin = currentWin;
		//topWin.myform.setFrm.value=ret;
		//topWin.myform.setFrm.click();
		var setfrm = eval("topWin.myform." + document.form._setfrm.value);
		setfrm.value = ret;
		setfrm.click();		
	}
     
     //-->
</script>
<link rel="stylesheet" href="file_upload.css" type="text/css">
</head>
<body>
<form name="form" method="post" action="file_upload.cgi" id="form1" enctype="multipart/form-data">
<input type="hidden" name="_action" value="upload">
<input type="hidden" name="_p_id" value="33">
<input type="hidden" name="_setfrm" value="setFrm_sp_f2">


<table width=350 align=center cellspacing=0 cellpadding=0>
<tr>
<td class="mframe-t-left"></td>
<td class="mframe-t-mid">
	<span class="mframe-t-text">文件上传</span>
</td>
<td class="mframe-t-right"></td>
</tr>
</table>
<table width=350 align=center cellspacing=0 cellpadding=0>
<tr>
<td class="mframe-m-left"></td>
<td class="mframe-m-mid">
	<table cellpadding=3 width="95%" align="center">
	<tr><td align="center">
		<span id="myLabel" style="width:100%;">上传文件类型只能为:jpg,gif</span><br><br>
		选择上传文件：
		<input name="myFile" id="myFile" type="file" size="15" /> 
	</td></tr>
	<tr><td align="center" valign=top >
		<table align=center>
		<!--<tr><td>
		<input id="dispImage" type="checkbox" name="dispImage" /><label for="dispImage">显示图片</label>
		</td><td>
		<input id="dispTitle" type="checkbox" name="dispTitle" /><label for="dispTitle">标题图片</label>
		</td></tr>
		<tr><td colspan=2>
		<input id="getThumbnail" type="checkbox" name="getThumbnail" /><label for="getThumbnail">生成缩略图</label>
		<select name="thumbnailSize" id="thumbnailSize">
	<option value="120">120x90</option>
	<option value="160">160x120</option>
	<option value="200">200x150</option>

</select>普通新闻请选择160x120，招聘培训请选择120x90
		</td></tr>-->
<!--
		<tr><td colspan=2>
		<input id="getSmall" type="checkbox" name="getSmall" /><label for="getSmall">生成小图</label>
		<select name="smallSize" id="smallSize">
	<option value="800">800x600</option>
	<option value="640">640x480</option>
	<option value="480">480x360</option>
	<option value="360">340x270</option>
	<option value="240">240x180</option>
	<option value="120">120x90</option>

</select>
		</td></tr>
-->
		</table>
	</td></tr>
	<tr>
		<td style="padding-left:33px;">
		图&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注&nbsp;：&nbsp;<input type=text name=picture_note value="" size=26>
		</td>
	</tr>
	<tr><td align="center">
	<input type="submit" name="Submit" value="上 传" id="Submit" onClick="return checkForm()">
	</td> </tr>
	</table>	
</td>
<td class="mframe-m-right"></td>
</tr>
</table>
<table width=350 align=center cellspacing=0 cellpadding=0 >
<tr>
<td class="mframe-b-left"></td>
<td class="mframe-b-mid">&nbsp;</td>
<td class="mframe-b-right"></td>
</tr>
</table>

</form>
</body>
</html>

